import os
Web_list=[]
path = "Web_log"  # Web
files = os.listdir(path)
for file in files:  # 遍历文件夹
    if not Web_list:
        Web_list.append(file)
        cmd = "Webcmd"
        send_information(cmd, file)
    else:
        if file not in Web_list:
            Web_list.append(file)
            cmd = "Webcmd"
            send_information(cmd, file)